//
//  HeaderConstant.h
//  RRQS
//
//  Created by kyjun on 16/3/23.
//
//

#ifndef HeaderConstant_h
#define HeaderConstant_h




//----------------------系统----------------------------

// 是否iPad
#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
// 是否iPad
#define someThing (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)? ipad: iphone

//获取系统版本
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]

#define ISIOS7 [[[UIDevice currentDevice]systemVersion] doubleValue] >= 7.0


//检查系统版本
#define SYSTEM_VERSION_EQUAL_TO(v)                  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v)              ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)     ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)

//#define kHost @"http://www.xyrr.com/mobile/Qs/index"
//@"http://www.xyrr.com/mobile/Qsnew/index"
//#define kHost @"http://ezpc.zadtek.com/mobile/Qs/index"
#define kHost @"http://xmpc.zadtek.com/mobile/Qs/index"

#define kAppKey @"a7356fe1c3abda179353dae0"



#endif /* HeaderConstant_h */
